<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">配置列表</a></li>
			<li><a href="{:url('pay/setintegral')}">添加配置</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('blog/pay/integral')}">
			商铺查询：
			<input type="text" class="form-control" name="storeid" style="width: 200px;"
				   value="{:input('request.storeid')}" placeholder="填写店铺id">
			<input type="submit" class="btn btn-primary" value="查询"/>
			<a class="btn btn-danger" href="{:url('pay/integral')}">清空</a>
		</form>
		<form action="../../../../index.php" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="5%">ID</th>
						<th width="5%">店铺名称</th>
						<th width="5%">充值(余额)比例</th>
						<th width="5%">充值(积分)比例</th>
						<th width="5%">购物赠送积分</th>
						<th width="5%">按杯兑换</th>
						<th width="5%">最大充值金额</th>
						<th width="5%">最小充值金额</th>
						<th width="5%">状态</th>
						<th width="5%">操作</th>
					</tr>
				</thead>
				<tbody>
                 <foreach name="data" item="data">
					 <tr>
						 <th >{$data.id}</th>
						 <th >{$data.store_name}</th>
						 <th >{$data.top_money}</th>
						 <th >{$data.top_intintegral}</th>
						 <th >{$data.get_intin}</th>
						 <th >{$data.deduction}</th>
						 <th >{$data.max}</th>
						 <th >{$data.min}</th>
						 <if condition="$data.state eq 1">
						 	<th align="left">启用</th>
						 <else/>
						 	<th align="left">关闭</th>
						 </if>
							 <th width="160"><a href="{:url('pay/up',array('id'=>$data.id,'state'=>$data.state))}">修改</a>
							 <a href="{:url('pay/del',array('id'=>$data.id,'table'=>'config'))}">删除</a></th>
					 </tr>
				 </foreach>
				</tbody>
			</table>
			<ul class="pagination">{$page|default=''}</ul>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
<script>
</script>
</html>